package com.example.demo.controllers;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("home")
@RestController
public class HomeController {

    public class ResponseEntity {

        private String test;

        public String getTest() {
            return test;
        }

        public void setTest(String test) {
            this.test = test;
        }
    }

    @GetMapping("get")
    public ResponseEntity GetString(){
        ResponseEntity data = new ResponseEntity();
        data.setTest("1111");
        return data;
    }

}
